<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Order/V_small_order_apply.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/order/V_small_order_apply.js";
    import ViewGrid from "@/components/basic/viewT.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '冬令营订单',
                    name: 'V_small_order_apply',
                    url: "/VSmallOrdersApply/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"order_number":"","createID":"","createDate":""},
                editFormOptions: [
                              [{"title":"预订人名称","field":"bookingName","type":"text"},
                     {"title":"订单号","required":true,"field":"order_number","type":"text"},
                     {"title":"取票码","field":"ticketsCode","type":"like"}],
                     [{"title":"订单类型","field":"type","type":"select","dataKey":"order_type"},
                     {"title":"订单状态","field":"status","type":"select","dataKey":"order_status"},
                     {"title":"预订人电话","field":"bookingPhone","type":"text"}]
            ],
                searchFormFields: {"order_number":"","type":"","user_id":"","trade_order_number":"","pay_type":"","modifier":"","modifyID":"","modifyDate":"","createDate":"","createID":"","creator":"","ticketsCode":"","bookingName":"","distributorCode":"","image":"","external_order_number1":""},
                searchFormOptions: [
                                 [{"title":"订单号","field":"order_number","type":"like"},
                                 {"title":"取票码","field":"ticketsCode","type":"like"},],
                                 [{"title":"预订人名称","field":"bookingName","type":"like"},
                                 {"title":"预订人电话","field":"bookingPhone","type":"like"}],
                                 [{"title":"支付状态","field":"is_pay","type":"select","dataKey":"order_pay"},
                                 {"title":"付款时间","field":"pay_time","type":"datetime"}],
                                 [{"title":"分销商","field":"distributorCode","type":"select","dataKey":"distributorList"},
                                 {"title":"订单状态","field":"status","type":"select","dataKey":"order_status"}],
                                 [{"title":"外部订单号","field":"external_order_number1","type":"like"}
                                 ]
                                 ],
                columns: [
                // {field:'id',title:'主键',type:'string',width:220,hidden:true,readonly:true,require:true,align:'left'},
                      {
                        field: "product_name",
                        title: "营地名称",
                        type: "int",
                        width: 190,
                        align: "left",
                      },
                      {
                        field: "title",
                        title: "营期名称",
                        type: "string",
                        width: 120,
                      },
                       {field:'order_number',title:'订单号',type:'string',width:200,align:'left'},
                       {field:'type',title:'订单类型',bind: { key: 'order_type', data: [] },type:'string',width:80,align:'left'},
                       {field:'status',title:'订单状态',bind: { key: 'order_status', data: [] },type:'string',width:105,align:'left'},
                       {field:'ticketsCode',title:'取票码',type:'string',width:150,align:'left'},
                       {field:'isTake',title:'票状态',bind: { key: 'order_Take', data: [] },type:'int',width:120,align:'left'},
                       {field:'bookingName',title:'预定人名称',type:'int',width:120,align:'left'},
                       {field:'bookingPhone',title:'预定人电话',type:'int',width:120,align:'left'},
                       {field:'reservationType',title:'预订类型',bind: { key: 'reservationType', data: [] },type:'string',width:160,align:'left'},
                       {field:'distributorCode',title:'分销商',bind: { key: 'distributorList', data: [] },type:'string',width:180,align:'left'},
                       {field:'is_pay',title:'支付状态',bind: { key: 'order_pay', data: [] },type:'string',width:150,align:'left'},
                       {field:'pay_type',title:'支付方式',bind: { key: 'order_pay_type', data: [] },type:'string',width:160,align:'left'},
                    //    {field:'spare12',title:'协议单位',type:'string',width:150,align:'left'},
                       {field:'order_total_price',title:'订单总金额',type:'decimal',width:160,align:'left'},
                    //    {field:'confirmationNo',title:'确认号',type:'string',width:160,align:'left'},
                       //{field:'isPayDeposit',title:'是否支付押金',type:'int',width:100,align:'left'},
                       //{field:'paydepositPrice',title:'押金金额',type:'decimal',width:100,align:'left'},
                       {field:'pay_time',title:'付款时间',type:'datetime',width:160,align:'left',sortable:true},
                       //{field:'distributorCode',title:'分销商编码',type:'string',width:120,align:'left'},
                    //    {field:'offline_order_number',title:'线下订单号',type:'string',width:160,align:'left'},
                    //    {field:'external_order_number1',title:'外部订单号1',type:'string',width:160,align:'left'},
                    //    {field:'external_order_number2',title:'外部订单号2',type:'string',width:160,align:'left'},
                       {field:'creator',title:'创建人名称',type:'string',width:120,align:'left',sortable:true},
                       {field:'createID',title:'创建人id',type:'int',width:90,hidden:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:160,align:'left',sortable:true},
                    //    {field:'modifier',title:'修改人名称',type:'string',width:120,align:'left'},
                       {field:'modifierID',title:'修改人id',type:'int',width:90,align:'left',hidden:true},
                       {field:'modifyDate',title:'修改时间',type:'datetime',hidden:true,width:160,align:'left',sortable:true},
                        // {field:'image',title:'小程序二维码',type:'img',width:160,align:'left'},
                        // {field:'external_order_number2',title:'外部订单号2',type:'string',width:120,align:'left'},
                        {field:'card_equities',title:'备注',type:'string',width:220,align:'left'},
                    //    {field:'spare10',title:'备用',type:'string',width:220,align:'left'},
                    //    {field:'spare11',title:'备用',type:'string',width:220,align:'left'},
                    //    {field:'spare12',title:'备用',type:'string',width:220,align:'left'},
                    //    {field:'spare13',title:'备用',type:'string',width:220,align:'left'},
                    //    {field:'spare14',title:'备用',type:'string',width:220,align:'left'},
                    //    {field:'spare15',title:'备用',type:'string',width:220,align:'left'}
                ],
                detail: {
                    cnName:"订单项目",
                    columns: [{field:'id',title:'主键',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'settlement_total_fee',title:'商品总金额',edit:{type:'text'},type:'decimal',width:120,align:'left'},
                       {field:'settlement_price',title:'商品单价',type:'decimal',edit:{type:'text'},width:120,align:'left'},
                       {field:'title',title:'商品标题',type:'string',edit:{type:'text'},width:120,align:'left'},
                       {field:'num',title:'商品购买数量',type:'int',edit:{type:'text'},width:120,align:'left'},
                       {field:'status',title:'状态',type:'int',width:120,edit:{type:'text'},align:'left'},
                       {field:'external_online_order_number',title:'外部线上订单号',type:'string',width:160,align:'left'},
                       {field:'external_offline_order_number',title:'外部线下订单号',type:'string',width:160,align:'left'},
                       {field:'auxiliaryConfirmationNo',title:'辅助确认号',type:'string',width:120,align:'left'},
                       {field:'confirmationNo',title:'确认号',type:'string',width:120,align:'left'},
                       {field:'pay_type',title:'支付方式',type:'string',width:120,align:'left'},
                       {field:'playStartDate',title:'游玩开始时间',type:'datetime',edit:{type:'text'},width:120,align:'left',sortable:true},
                        {field:'playEndDate',title:'游玩结束时间',type:'datetime',edit:{type:'text'},width:120,align:'left',sortable:true},
                       {field:'settlement_total_fee',title:'结算总价',type:'decimal',edit:{type:'text'},width:120,align:'left'},
                       {field:'processingStatus',title:'处理状态',edit:{type:'text'},type:'string',width:120,align:'left'},
                       {field:'settlement_price',title:'结算单价',type:'decimal',width:120,align:'left'},
                       {field:'refundStatus',title:'1 可申请退款  2 退款中 3已退款  4 该商品不可退款',type:'string',width:120,align:'left'},
                       {field:'paydepositPrice',title:'押金',type:'decimal',width:120,align:'left'},
                       {field:'childrenNumber',title:'订单子项单号',type:'string',width:120,align:'left'},
                       {field:'certificate_type',title:'证件类型',edit:{type:'text'},type:'string',width:120,align:'left'},
                       {field:'id_card',title:'证件号',type:'string',edit:{type:'text'},width:120,align:'left'},
                       {field:'name',title:'姓名',type:'string',edit:{type:'text'},width:120,align:'left'},
                       {field:'phone',title:'电话',type:'string',edit:{type:'text'},width:120,align:'left'},
                       {field:'spare11',title:'spare11',hidden:true,type:'string',width:120,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',hidden:true,width:120,align:'left',sortable:true},
                       {field:'modifierID',title:'修改人id',type:'int',hidden:true,width:120,align:'left'},
                       {field:'modifier',title:'修改人名称',type:'string',width:120,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',edit:{type:'text'},width:120,align:'left',sortable:true},
                       {field:'createID',title:'创建人id',type:'int',width:120,hidden:true,align:'left'},
                       {field:'creator',title:'创建人名称',type:'string',edit:{type:'text'},width:120,align:'left'},

                       ],
                    sortName: "id",
                    key:"order_id"
                }
            };
        }
    };
    export default vueParam;
</script>
